package com.zy.settings

import android.content.Intent
import com.zy.activity.BaseMenuActivity
import com.zy.activity.bean.BaseMenuBean
import com.zy.settings.SettingsConstant.DATA_BACKUP
import java.util.ArrayList

class SettingsListMainActivity : BaseMenuActivity() {

    override fun init(list: ArrayList<BaseMenuBean>) {
        list.add(BaseMenuBean("数据备份", 1))
//        list.add(BaseBean("通用", 2))
//        list.add(BaseBean("关于", 3))
//        list.add(BaseBean("切换账号", 3))
//        list.add(BaseBean("退出", 3))
    }

    override fun clickItem(bean: BaseMenuBean) {
        if (bean.code == 1) {
            startActivity(Intent(this, SettingsMainActivity::class.java).apply {
                putExtra(SettingsConstant.SETTINGS_CODE, DATA_BACKUP)
            })
        }
    }
}